Optional ARB-VBO.f

requires gl-extensions.f

Only Forth Definitions

\ VBO
VOID 2 GLFunction: glGenBuffersARB  ( size addr -- )
VOID 2 GLFunction: glDeleteBuffersARB  ( size addr -- )
2 GLFunction: glMapBufferARB  ( target access  -- addr )
1 GLFunction: glUnmapBufferARB  ( target -- flag )
VOID 2 GLFunction: glBindBufferARB  ( target id -- )
VOID 4 GLFunction: glBufferDataARB  ( target size addr usage -- )
VOID 4 GLFunction: glBufferSubDataARB  ( target offset size addr -- )

#define GL_BUFFER_SIZE_ARB                $8764
#define GL_BUFFER_USAGE_ARB               $8765
#define GL_ARRAY_BUFFER_ARB               $8892
#define GL_ELEMENT_ARRAY_BUFFER_ARB       $8893
#define GL_ARRAY_BUFFER_BINDING_ARB       $8894
#define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB $8895
#define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB $8896
#define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB $8897
#define GL_COLOR_ARRAY_BUFFER_BINDING_ARB $8898
#define GL_INDEX_ARRAY_BUFFER_BINDING_ARB $8899
#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB $889A
#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB $889B
#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB $889C
#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB $889D
#define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB $889E
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB $889F
#define GL_READ_ONLY_ARB                  $88B8
#define GL_WRITE_ONLY_ARB                 $88B9
#define GL_READ_WRITE_ARB                 $88BA
#define GL_BUFFER_ACCESS_ARB              $88BB
#define GL_BUFFER_MAPPED_ARB              $88BC
#define GL_BUFFER_MAP_POINTER_ARB         $88BD
#define GL_STREAM_DRAW_ARB                $88E0
#define GL_STREAM_READ_ARB                $88E1
#define GL_STREAM_COPY_ARB                $88E2
#define GL_STATIC_DRAW_ARB                $88E4
#define GL_STATIC_READ_ARB                $88E5
#define GL_STATIC_COPY_ARB                $88E6
#define GL_DYNAMIC_DRAW_ARB               $88E8
#define GL_DYNAMIC_READ_ARB               $88E9
#define GL_DYNAMIC_COPY_ARB               $88EA
